<?php
declare (strict_types = 1);

namespace app\admin\model;

use think\Model;

/**
 * @mixin think\Model
 */
class Township extends Model
{
    public function parent()
    {
        return $this->belongsTo('township','parent_id');
    }
    public function c()
    {
        return $this->hasMany('township','parent_id');
    }
}
